package com.cskaoyan._14network._04test._03uploadfile;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.Socket;

/**
 * @author Macro_Ray
 * @since 2024/3/26 10:20
 */
// 客户端：将本地文件上传到服务器，接收服务器的反馈
public class Client {
    public static void main(String[] args) throws IOException {

        // 1. 创建 Socket 连接到服务器
        Socket socket = new Socket("127.0.0.1", 10086);

        // 2. 读取本地文件内容
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("basketball2.mp4"));



    }
}
